# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-hexdump
_pkgname=hexdump
pkgver=3.3
pkgrel=4
pkgdesc='Dump binary data to hex format and restore from there.'
url='https://pypi.org/project/hexdump/#files'
arch=('any')
license=('Public Domain')
depends=('python2')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.zip")
sha512sums=('3299f6a29dcf4293616c5ea652397429ee844ca30964ee0fc784fb2a93252b75eb28fb797640e26477eb6b291aa38e14ad5046d8b4488dc4e03bd79b9449898b')

build() {
  python2 setup.py build
}

package() {
  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

